package com.pt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pt.entity.PrivateMessage;

public interface PrivateMessageService {
    
    IPage<PrivateMessage> getInbox(Long userId, Page<PrivateMessage> page);
    
    IPage<PrivateMessage> getOutbox(Long userId, Page<PrivateMessage> page);
    
    PrivateMessage sendMessage(PrivateMessage message);
    
    void markAsRead(Long messageId, Long userId);
    
    void deleteMessage(Long messageId, Long userId);
    
    Integer getUnreadCount(Long userId);
} 